<template>
  <div class="home">
    <div id="one" class="one">one</div>
    <div id="two" class="two">two</div>
    <ConnectingLine startDom="one" endDom="two"></ConnectingLine>
  </div>
</template>

<script setup lang="ts">
// 引入组件
import ConnectingLine from "@/components/connectingLine.vue";

</script>

<style lang="less" scoped>
.home {
  width: 100%;
  height: 100%;
  position: relative;

  .one {
    position: absolute;
    top: 100px;
    left: 100px;
  }

  .two {
    position: absolute;
    top: 300px;
    left: 300px;
  }
}
</style>